package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.Customer;
import edu.ynu.se.xiecheng.achitectureclass.entity.Order;

import java.util.Optional;

public interface OrderDao extends LogicDAO<Order,Long> {
    Optional<Order> findById(Long orderId);
    Optional<Order> findByCustomerAndIsPaid(Customer customer, boolean isPaid);

}
